libxl/vcpu-set - allow to decrease vcpu count on overcommitted guests (v5)
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 3 Apr 2015 20:02:34 +0000 (16:02 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Apr 2015 13:04:29 +0000 (14:04 +0100)
commit292b2f8201d0f014a151b717ec9e3a2e882d3d65
treea5b5d0a66cba02f874dd2452b84fd90e214e0564
parent9d447f61f911cd94f3e228cc81417e6f8c4e1ae0
libxl/vcpu-set - allow to decrease vcpu count on overcommitted guests (v5)

We have a check to warn the user if they are overcommitting.
But the check only checks the hosts CPU amount and does
not take into account the case when the user is trying to fix
the overcommit. That is - they want to limit the amount of
online VCPUs.

This fix allows the user to offline vCPUs without any
warnings when they are running an overcommitted guest.

Also fix the extra space in the message.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c